;;;;;;;;;;;;;;;;;;;;;;; go mode 
(add-to-list 'load-path "~/.emacs.d/lisp/program_language/golang/go_mode")
(autoload 'go-mode "go-mode" nil t)
(add-to-list 'auto-mode-alist '("\\.go\\'" . go-mode))

(evil-leader/set-key
  "gj" 'godef-jump-other-window)




;;;;;;;;;;;;;;;;;;;;; go flymake
(add-to-list 'load-path "~/.emacs.d/lisp/program_language/golang")
(require 'go-flymake)



;;             ;;;;;;;;;;go autocomplete
(require 'go-autocomplete)
(require 'auto-complete-config)
(ac-config-default)
(add-hook 'completion-at-point-functions 'go-complete-at-point)

(setq default-tab-width 2)



(defun go_path_src ()
  (interactive)
  (dired-other-window  "/home/zdq/gopath/src") )


(evil-leader/set-key
  "gps"                          'go_path_src)



(message "golang")
(provide 'golang)






